/**
 * 异步请求接口
 */

import * as type from './type'
import MemberApi from 'Api/member'

const actions = {
    // 获取用户信息
    async getMemberInfo({ commit }) {
        let result = await MemberApi.GetMemberCenterInfo()

        let action = {
            type: type.MODEFY_MEMBER_INFO,
            payload: result.Data
        }

        commit(action)
    }
}

export default actions